import Css from './css-tp.mjs'

const keys = Object.keys(Css.strIntVal).join('|')
const rex = new RegExp(`(${keys})`,'g')

// console.log(Css.numVal);
// console.log(rex);

let str = 'W50 H30 Dn TWb W50v TXAc'

let arr = str.match(rex)
let css = arr.join('\n').replace(rex, (name) => `.${name}{${Css.strIntVal[name]};}`)


console.log(css);